@echo off
SET /p commitMessage="Enter commit message: "
cd /d E:\workspace_typora\笔记\2024年
git pull origin master
git add .
if "%commitMessage%"=="" (
    git commit -am "Auto commit"
) else (
    git commit -am "%commitMessage%"
)
git push origin master
